home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-09-20 | 1.9 KB | 53 lines | [TEXT/cSSv] |
- #
- # commsService 2.0 Service Definition File.
- #
- Name=Minnesota Uni Gopher
- Description=Provides access to the Minnesota Gopher server via a character interface.
-
- TimeOut=0
- BreakEnabled=No
- PagesToScroll=30
- ConnectionTool=TGE TCP Tool
- ConnectionTokens=HostName consultant.micro.umn.edu PortNumber 23 ConnectionType TELNET TelnetBinaryMode FALSE TerminalType vt100
- ConnectionMenu=No
- TerminalTool=VT102 Tool
- TerminalTokens=FontSize 12 Width 80 Cursor Underline Online True LocalEcho False AutoRepeat True RepeatControls False AutoWrap True NewLine False Scroll Jump ShowControls False SwapBackspaceDelete False TerminalMode ANSI/VT102 ShowStatusBar False ShowTabRuler False InverseVideo False InsertChar False OriginAtMargin False KeyClick False CursorKey ANSI Keypad Numeric AnswerBack "" KeyboardLocked False ActiveCharSet G0 NRCSet USASCII G0 USASCII G1 USASCII G2 USASCII G3 USASCII
- TerminalMenu=No
- ServiceScripts=on LoginToService
- Global activeService, foundString
- if ExpectFromService(activeService, 30, true, true, "login:") then
- if foundString = 1 then
- get SendToService(activeService, "gopher" & return, "")
- if ExpectFromService(activeService, 30, true, true, "TERM") then
- if foundString = 1 then
- get SendToService(activeService, "vt100" & return, "")
- if ExpectFromService(activeService, 30, true, true, "Internet Gopher Information Client") then
- if foundString = 1 then return true
- end if
- end if
- end if
- end if
- end if
- return false
- end LoginToService
- ------------------
- on LogoutFromService
- Global activeService, foundString
- get SendToService(activeService, "q" & return, "")
- repeat
- if not(ExpectFromService(activeService, 10, true, true, "Really quit (y/n)", "tasman%")) then return false
- if foundString = 0 then
- exit repeat
- end if
- if foundString = 1 then
- get SendToService(activeService, return, "")
- end if
- if foundString = 2 then
- get SendToService(activeService, "^D" & return, "")
- return true
- end if
- end repeat
- return false
- end LogoutFromService
-
-